import { BasicColumn, FormSchema } from '@/components/Table/index';

export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: '',
    component: 'Input',
    show: false,
  },
  {
    field: 'index',
    label: '',
    component: 'Input',
    show: false,
  },
  {
    field: 'link',
    label: 'link',
    component: 'Input',
    colProps: { xl: 24 },
    componentProps: {
      disabled: true
    },
  },
  {
    field: 'key',
    label: 'key',
    required: true,
    component: 'Input',
    colProps: { xl: 24 },
  },
  {
    field: 'value',
    label: 'value',
    component: 'Input',
    colProps: { xl: 24 },
    componentProps: {
      placeholder: '',
    },
  },
  {
    field: 'description',
    label: '描述',
    required: true,
    component: 'Input',
    colProps: { xl: 24 },
    componentProps: {
      placeholder: '',
    },
  },
  {
    field: 'componentDefaultValue',
    label: '组件默认值',
    component: 'Input',
    colProps: { xl: 24 },
    componentProps: {
      placeholder: '',
    },
  },
  {
    field: 'componentType',
    label: '组件类型',
    required: true,
    component: 'Select',
    colProps: { xl: 24 },
    componentProps: {
      placeholder: '',
      options: [
        { label: "Input", value: 'Input' },
        { label: "Upload", value: 'rwUpload' },
        { label: "数据字典", value: 'dictSelect' },
      ],
    },
  },
  {
    field: 'isEnable',
    label: '是否启用',
    required: true,
    component: 'Switch',
    defaultValue: true,
    colProps: { xl: 24 },
  },
];
